package com.zy.oop1118;

/**
 * @Author GongXL
 * @Description TODO
 * @dATE 2021/11/18 10:21
 **/
public class Animal extends Creature{
    public Animal(String name){
        System.out.println("Animal带一个参数的构造器，该动物的name为" + name);
    }
    public Animal(String name , int age){
        this(name);
        System.out.println("Animal带两个参数的构造器，其age为" + age);
    }


}
